﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XLua;
public class GlobalApi
{
    public static void SetTimeServer(LuaFunction luaFunction)
    {
        TimeServer timeSerer = ServerManager.Instance.GetServer(SERVER_TYPE.TIME_SERVER) as TimeServer;
        timeSerer.SetLuaFunction(luaFunction);
    }

    public static double GetTimeTicks()
    {
        TimeServer timeSerer = ServerManager.Instance.GetServer(SERVER_TYPE.TIME_SERVER) as TimeServer;
        return timeSerer.GetTimeTicks();
    }
}
